package com.mall.common.exception;

import com.mall.common.util.SpringUtils;

public class NoticeException extends RuntimeException {

	private static final long serialVersionUID = 8465460581085124521L;
	private String message;
	
	public NoticeException(String message){
		this.message = message;
	}
	
	public NoticeException(String code, Object args[]){
		this.message = SpringUtils.getMessage(code, args);	
	}
	
	public String getMessage() {
		return message;
	}
	
}
